const Mock = require('mockjs')

module.exports = function (req) {
  const result = Mock.mock({
    "list|1-3": [{
        id: "@id()", // 随机id
        name:"@cname()",
        "value|100-500": 500,
        "amount|100-500": 500,
        "percent|0.1-1":1,
        time: "@date()", // 随机日期
      }]
})
  return {
    "result": result,
    "error": null,
    "success": true,
    "code": "10000",
    "datetime": Date.now(),
  }
};
